import request from '@/utils/request'

export function getRule () {
  return request({
    url: '/mall4cloud_point/admin/point/rule',
    method: 'GET'
  })
}

export function switchEnable (data) {
  return request({
    url: '/mall4cloud_point/admin/point/rule/update',
    method: 'post',
    data
  })
}

export function updateRule (data) {
  return request({
    url: '/mall4cloud_point/admin/point/rule/update',
    method: 'post',
    data
  })
}
